<?php

include "connect.php";
$session_id=$_POST['session_id'];
$ses_name=$_POST['ses_name'];
$ses_desc=$_POST['ses_desc'];
$ses_status=$_POST['ses_status'];
$ses_year=$_POST['ses_year'];

$sq=mysql_query("select * From academic_session where session_id='$session_id'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE academic_session SET session_id='$session_id',ses_name='$ses_name',ses_desc='$ses_desc',ses_status='$ses_status',ses_year='$ses_year'
where session_id='$session_id'");



}
header("location:update_academic_session_success.php");
?>